﻿using System;

namespace DatabaseGroup.SSIS.SourceAdapters.View
{
    /// <summary>
    /// Defines events relating to the Editor view unrelated to any tabs
    /// </summary>
    public interface IEditorMainView : IEditorBaseView
    {
        /// <summary>
        /// Indicates the user has clicked the OK button and all
        /// settings have been successfully saved
        /// </summary>
        event EventHandler SavedSettings;

        /// <summary>
        /// Sets the DialogResult and then closes the form
        /// </summary>
        /// <param name="dialogResultIsOK">True if the dialog result should be set to OK</param>
        void CloseView(bool dialogResultIsOK);
    }
}
